

package study.Genericity;

import java.util.ArrayList;

public class Genericity_demo {
    public Genericity_demo() {
    }

    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        list.add("aaa");
        list.add(111);
        list.add(3.19);
        System.out.println(list);

        for(Object next : list) {
            System.out.println(next);
        }

    }
}
